# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-rangeparser
_pkgname=RangeParser
pkgver=0.1.3
pkgrel=9
pkgdesc='A Python package to parse ranges easily.'
url='https://pypi.org/project/RangeParser/#files'
arch=('any')
license=('BSD')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/RangeParser-$pkgver.tar.gz")
sha512sums=('76baaded7793f7bacc68b2dfd68db7a1542a297740261b7d30a195ba748d81ef48c6fb6e91ca4996e34951fae5144bdf080dc9c7833e22f1c030fb864498cdc8')

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1
}

